首页> 外文OA文献 >Extending Design by Contract for Aspect-Oriented Programming
【2h】

Extending Design by Contract for Aspect-Oriented Programming

机译:面向方面编程的合同扩展设计

摘要

Design by Contract (DbC) and runtime enforcement of program assertionsenables the construction of more robust software. It also enables theassignment of blame in error reporting. Unfortunately, there is no support forruntime contract enforcement and blame assignment for Aspect-OrientedProgramming (AOP). Extending DbC to also cover aspects brings forward aplethora of issues related to the correct order of assertion validation. Weshow that there is no generally correct execution sequence of object assertionsand aspect assertions. A further classification of aspects as agnostic,obedient, or rebellious defines the order of assertion validation that needs tobe followed. We describe the application of this classification in a prototypedDbC tool for AOP named Cona, where aspects are used for implementing contracts,and contracts are used for enforcing assertions on aspects.
机译:合同设计(DbC)和程序断言的运行时实施可实现功能更强大的软件的构建。它还可以在错误报告中分配责任。不幸的是,没有针对面向方面的编程(AOP)的运行时合同执行和非常规分配的支持。将DbC扩展到涵盖各个方面还提出了与断言验证的正确顺序有关的大量问题。我们表明,对象断言和方面断言通常没有正确的执行顺序。方面的进一步分类是不可知的,服从的或叛逆的,定义了必须遵循的断言验证的顺序。我们在名为Cona的AOP的原型DbC工具中描述了此分类的应用,其中,方面用于实现合同,而合同用于对方面进行声明。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号